home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / tl / tl-seq.elc.z / tl-seq.elc
Emacs Compiled Lisp  |  1998-05-21  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 35 3a 30 33 20 31 | 39 39 38 0a 3b 3b 3b 20 |:55:03 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 74 6c 2f 74 |s-20.3/l|isp/tl/t|
|000000a0| 6c 2d 73 65 71 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |l-seq.el|.;;; ema|
|000000b0| 63 73 20 76 65 72 73 69 | 6f 6e 20 32 30 2e 34 20 |cs versi|on 20.4 |
|000000c0| 22 45 6d 65 72 61 6c 64 | 22 20 58 45 6d 61 63 73 |"Emerald|" XEmacs|
|000000d0| 20 20 4c 75 63 69 64 2e | 0a 3b 3b 3b 20 62 79 74 | Lucid.|.;;; byt|
|000000e0| 65 63 6f 6d 70 20 76 65 | 72 73 69 6f 6e 20 32 2e |ecomp ve|rsion 2.|
|000000f0| 32 35 20 58 45 6d 61 63 | 73 3b 20 32 32 2d 4d 61 |25 XEmac|s; 22-Ma|
|00000100| 72 2d 39 36 2e 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 |r-96..;;|; optimi|
|00000110| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|00000120| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|00000130| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|00000140| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000150| 6d 61 63 73 20 31 39 2e | 0a 0a 28 69 66 20 28 61 |macs 19.|..(if (a|
|00000160| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000170| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000180| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000190| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|000001a0| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|000001b0| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|000001c0| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|000001d0| 20 22 32 30 22 29 29 29 | 0a 20 20 20 20 28 65 72 | "20")))|. (er|
|000001e0| 72 6f 72 20 22 60 74 6c | 2d 73 65 71 2e 65 6c 27 |ror "`tl|-seq.el'|
|000001f0| 20 77 61 73 20 63 6f 6d | 70 69 6c 65 64 20 66 6f | was com|piled fo|
|00000200| 72 20 45 6d 61 63 73 20 | 32 30 22 29 29 0a 0a 28 |r Emacs |20"))..(|
|00000210| 6f 72 20 28 62 6f 75 6e | 64 70 20 27 63 75 72 72 |or (boun|dp 'curr|
|00000220| 65 6e 74 2d 6c 6f 61 64 | 2d 6c 69 73 74 29 20 28 |ent-load|-list) (|
|00000230| 73 65 74 71 20 63 75 72 | 72 65 6e 74 2d 6c 6f 61 |setq cur|rent-loa|
|00000240| 64 2d 6c 69 73 74 20 6e | 69 6c 29 29 0a 0a 0a 28 |d-list n|il))...(|
|00000250| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 88 c2 |byte-cod|e "..!..|
|00000260| c3 21 ab 86 c0 c4 21 88 | aa 88 c5 c6 4d 88 c7 c8 |.!....!.|....M...|
|00000270| 4d 88 c0 87 22 20 5b 72 | 65 71 75 69 72 65 20 66 |M..." [r|equire f|
|00000280| 69 6c 65 2d 64 65 74 65 | 63 74 20 66 69 6c 65 2d |ile-dete|ct file-|
|00000290| 69 6e 73 74 61 6c 6c 65 | 64 2d 70 20 22 63 6c 2d |installe|d-p "cl-|
|000002a0| 73 65 71 2e 65 6c 63 22 | 20 63 6c 20 66 69 6e 64 |seq.elc"| cl find|
|000002b0| 2d 69 66 20 23 5b 28 70 | 72 65 64 20 73 65 71 29 |-if #[(p|red seq)|
|000002c0| 20 22 c0 09 47 c2 1b 1c | 1d c6 c7 8d 2b 87 22 20 | "..G...|....+." |
|000002d0| 5b 30 20 73 65 71 20 6e | 69 6c 20 65 6c 65 6d 65 |[0 seq n|il eleme|
|000002e0| 6e 74 20 6c 65 6e 20 69 | 20 74 61 67 20 28 62 79 |nt len i| tag (by|
|000002f0| 74 65 2d 63 6f 64 65 20 | 22 08 09 57 ad 94 5c 6e |te-code |"..W..\n|
|00000300| 0b 08 9c 89 14 21 ab 85 | c5 c6 0c 5c 22 88 08 54 |.....!..|...\"..T|
|00000310| 89 10 aa 68 87 22 20 5b | 69 20 6c 65 6e 20 70 72 |...h." [|i len pr|
|00000320| 65 64 20 73 65 71 20 65 | 6c 65 6d 65 6e 74 20 74 |ed seq e|lement t|
|00000330| 68 72 6f 77 20 74 61 67 | 5d 20 34 29 5d 20 33 20 |hrow tag|] 4)] 3 |
|00000340| 22 52 65 74 75 72 6e 20 | 74 68 65 20 66 69 72 73 |"Return |the firs|
|00000350| 74 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 73 65 71 |t elemen|t of seq|
|00000360| 75 65 6e 63 65 20 53 45 | 51 20 73 61 74 69 73 66 |uence SE|Q satisf|
|00000370| 79 69 6e 67 20 50 52 45 | 44 2e 5c 6e 5b 74 6c 2d |ying PRE|D.\n[tl-|
|00000380| 73 65 71 2e 65 6c 5d 22 | 5d 20 66 69 6e 64 20 23 |seq.el]"|] find #|
|00000390| 5b 28 69 74 65 6d 20 73 | 65 71 29 20 22 c0 c1 5c |[(item s|eq) "..\|
|000003a0| 6e 5c 22 87 22 20 5b 66 | 69 6e 64 2d 69 66 20 23 |n\"." [f|ind-if #|
|000003b0| 5b 28 65 6c 74 29 20 22 | 08 09 61 87 22 20 5b 65 |[(elt) "|..a." [e|
|000003c0| 6c 74 20 69 74 65 6d 5d | 20 32 5d 20 73 65 71 5d |lt item]| 2] seq]|
|000003d0| 20 33 20 22 52 65 74 75 | 72 6e 20 74 68 65 20 66 | 3 "Retu|rn the f|
|000003e0| 69 72 73 74 20 65 6c 65 | 6d 65 6e 74 20 77 68 69 |irst ele|ment whi|
|000003f0| 63 68 20 69 73 20 66 6f | 75 6e 64 20 69 6e 20 73 |ch is fo|und in s|
|00000400| 65 71 75 65 6e 63 65 20 | 53 45 51 20 61 73 20 69 |equence |SEQ as i|
|00000410| 74 65 6d 2e 5c 6e 5b 74 | 6c 2d 73 65 71 2e 65 6c |tem.\n[t|l-seq.el|
|00000420| 5d 22 5d 5d 20 32 29 0a | 23 40 31 35 34 20 52 65 |]"]] 2).|#@154 Re|
|00000430| 74 75 72 6e 20 28 66 75 | 6e 63 20 28 66 75 6e 63 |turn (fu|nc (func|
|00000440| 20 28 66 75 6e 63 20 28 | 2e 2e 2e 20 28 66 75 6e | (func (|... (fun|
|00000450| 63 20 61 20 53 6e 29 20 | 2e 2e 2e 29 20 53 32 29 |c a Sn) |...) S2)|
|00000460| 20 53 31 29 20 53 30 29 | 0a 77 68 65 6e 20 66 75 | S1) S0)|.when fu|
|00000470| 6e 63 27 73 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |nc's arg|ument is|
|00000480| 20 32 20 61 6e 64 20 73 | 65 71 20 69 73 20 61 20 | 2 and s|eq is a |
|00000490| 73 65 71 75 65 6e 63 65 | 20 77 68 6f 73 65 0a 65 |sequence| whose.e|
|000004a0| 6c 65 6d 65 6e 74 73 20 | 3d 20 53 30 20 53 31 20 |lements |= S0 S1 |
|000004b0| 53 32 20 2e 2e 2e 20 53 | 6e 2e 20 5b 74 6c 2d 73 |S2 ... S|n. [tl-s|
|000004c0| 65 71 2e 65 6c 5d 1f 0a | 28 64 65 66 61 6c 69 61 |eq.el]..|(defalia|
|000004d0| 73 20 27 66 6f 6c 64 72 | 20 23 5b 28 66 75 6e 63 |s 'foldr| #[(func|
|000004e0| 20 61 20 73 65 71 29 20 | 22 08 47 19 09 c2 56 ab | a seq) |".G...V.|
|000004f0| 8c 09 53 11 0b 0c 08 09 | 9c 5c 22 14 aa 6f 0c 29 |..S.....|.\"..o.)|
|00000500| 87 22 20 5b 73 65 71 20 | 69 20 30 20 66 75 6e 63 |." [seq |i 0 func|
|00000510| 20 61 5d 20 34 20 28 23 | 24 20 2e 20 31 30 37 30 | a] 4 (#|$ . 1070|
|00000520| 29 5d 29 0a 23 40 31 34 | 31 20 52 65 74 75 72 6e |)]).#@14|1 Return|
|00000530| 20 28 2e 2e 2e 20 28 66 | 75 6e 63 20 28 66 75 6e | (... (f|unc (fun|
|00000540| 63 20 28 66 75 6e 63 20 | 61 20 53 30 29 20 53 31 |c (func |a S0) S1|
|00000550| 29 20 53 32 29 20 2e 2e | 2e 29 0a 77 68 65 6e 20 |) S2) ..|.).when |
|00000560| 66 75 6e 63 27 73 20 61 | 72 67 75 6d 65 6e 74 20 |func's a|rgument |
|00000570| 69 73 20 32 20 61 6e 64 | 20 73 65 71 20 69 73 20 |is 2 and| seq is |
|00000580| 61 20 73 65 71 75 65 6e | 63 65 20 77 68 6f 73 65 |a sequen|ce whose|
|00000590| 0a 65 6c 65 6d 65 6e 74 | 73 20 3d 20 53 30 20 53 |.element|s = S0 S|
|000005a0| 31 20 53 32 20 2e 2e 2e | 2e 20 5b 74 6c 2d 73 65 |1 S2 ...|. [tl-se|
|000005b0| 71 2e 65 6c 5d 1f 0a 28 | 64 65 66 61 6c 69 61 73 |q.el]..(|defalias|
|000005c0| 20 27 66 6f 6c 64 6c 20 | 23 5b 28 66 75 6e 63 20 | 'foldl |#[(func |
|000005d0| 61 20 73 65 71 29 20 22 | 08 47 c1 1a 1b 5c 6e 0b |a seq) "|.G...\n.|
|000005e0| 57 ab 8d 0c 0d 08 5c 6e | 9c 5c 22 15 5c 6e 54 89 |W.....\n|.\".\nT.|
|000005f0| 12 aa 6f 0d 2a 87 22 20 | 5b 73 65 71 20 30 20 69 |..o.*." |[seq 0 i|
|00000600| 20 6c 65 6e 20 66 75 6e | 63 20 61 5d 20 35 20 28 | len fun|c a] 5 (|
|00000610| 23 24 20 2e 20 31 33 32 | 32 29 5d 29 0a 28 64 65 |#$ . 132|2)]).(de|
|00000620| 66 61 6c 69 61 73 20 27 | 70 61 63 6b 2d 73 65 71 |falias '|pack-seq|
|00000630| 75 65 6e 63 65 20 23 5b | 28 73 65 71 20 73 69 7a |uence #[|(seq siz|
|00000640| 65 29 20 22 08 47 c1 c2 | 89 c1 c2 1b 1c 1d 1e 06 |e) ".G..|........|
|00000650| 1e 07 1e 08 0e 07 0e 08 | 57 ab a5 08 0e 07 9c 89 |........|W.......|
|00000660| 16 06 0d 42 15 0c 54 89 | 14 0e 09 55 ab 8a ca 0d |...B..T.|...U....|
|00000670| 21 0b 42 13 c2 15 c1 14 | 0e 07 54 89 16 07 aa 56 |!.B.....|..T....V|
|00000680| 0d ab 86 ca 0d 21 0b 42 | 13 ca 0b 21 2e 06 87 22 |.....!.B|...!..."|
|00000690| 20 5b 73 65 71 20 30 20 | 6e 69 6c 20 64 65 73 74 | [seq 0 |nil dest|
|000006a0| 20 69 20 75 6e 69 74 20 | 6f 62 6a 20 70 20 6c 65 | i unit |obj p le|
|000006b0| 6e 20 73 69 7a 65 20 72 | 65 76 65 72 73 65 5d 20 |n size r|everse] |
|000006c0| 37 5d 29 0a 28 70 72 6f | 76 69 64 65 20 27 74 6c |7]).(pro|vide 'tl|
|000006d0| 2d 73 65 71 29 0a | |-seq). | |
+--------+-------------------------+-------------------------+--------+--------+